package test1223;

public class Test06 {
    public static void main(String[] args) {
        // 打印1,3,5,7,9
        for (int i = 1; i < 10; i++){
            if (i ==2||i ==4||i ==6||i ==8){
                continue;
            }
            System.out.println(i);
        }
        // 打印10,8,6,4,2
        for (int i = 10;i>1; i--){
            if (i ==1||i ==3||i ==5||i ==7||i ==9){
                continue;
            }
            System.out.println(i);
        }
    }
}
